import { createStore } from "vuex";
import user from "./modules/user";
import cart from "./modules/cart";
import createPersistedState from "vuex-persistedstate";
export default createStore({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    cart,
    user,
  },
  plugins: [createPersistedState()], //实现store的持久化存储
});
